package com.DHH.Entity.Device;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类DeviceArea
 * 数据表device_tb_area
 * 停靠区域表
 * 2017-8-3 12:33:07
 * @author Administrator
 *
 */
@Table(name = "device_tb_area")
public class DeviceArea  implements Serializable {

	//
	@Id
	@GeneratedValue(generator = "JDBC")
	private Integer id;
	//停靠区域名称
	@NotNull(message = "停靠区域名称不能为空")
	@Length(max = 32, min = 0, message = "停靠区域名称长度为0-32个字符")
	private String areaName;
	//
	@NotNull(message = "不能为空")
	private String lat;
	@NotNull(message = "不能为空")
	private String lng;
	//半径
	@NotNull(message = "半径不能为空")
	private Float radius;

	private Integer disabled;
	public DeviceArea(){

	}

	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setAreaName(String areaName){
		this.areaName=areaName;
	}

	public String getAreaName(){
		return this.areaName;
	}
	public void setLat(String lat){
		this.lat=lat;
	}

	public String getLat(){
		return this.lat;
	}
	public void setLng(String lng){
		this.lng=lng;
	}

	public String getLng(){
		return this.lng;
	}
	public void setRadius(Float radius){
		this.radius=radius;
	}

	public Integer getDisabled() {
		return disabled;
	}

	public void setDisabled(Integer disabled) {
		this.disabled = disabled;
	}

	public Float getRadius(){
		return this.radius;
	}

	@Override
	public String toString() {
		return "DeviceArea{" +
				"id=" + id +
				", areaName='" + areaName + '\'' +
				", lat='" + lat + '\'' +
				", lng='" + lng + '\'' +
				", radius=" + radius +
				'}';
	}
}
